<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>Welcome Back</title>
    <meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no,minimal-ui"/>
	<meta http-equiv="expires" content="Sunday 26 October 2008 01:00 GMT" />
	<meta http-equiv="pragma" content="no-cache" />
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <meta name="mobile-web-app-capable" content="yes"> 
    <meta name="full-screen" content="true"/>
    <meta name="screen-orientation" content="landscape"/>
    <meta name="renderer" content="webkit" /> 
    <meta name="360-fullscreen" content="true"/>
	<meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <!-- QQ强制全屏 -->
    <meta name="x5-fullscreen" content="true"/>
    <!-- UC应用模式 -->
    <meta name="browsermode" content="application"/>
    <!-- QQ应用模式 -->
    <meta name="x5-page-mode" content="app"/>
	<meta http-equiv="x-ua-compatible" content="IE=edge"/>
    <!-- windows phone 点击无高光 -->
    <meta name="msapplication-tap-highlight" content="no"/>
</head>
<body>
    <div id="nonsupportDiv" style="display:block;overflow:hidden;position:absolute;top:0;left:0;width:100%;height:100%;z-index:998;text-align:center;background-color:black">
		<img src="html/nonsupport_title_warn.png" style="width:7%;height:12%;position:absolute;top:20%;left:47%;">
		<h1 id="p4" style="position:relative;top:35%;color:red;text-align:center;">您当前的浏览器不能得到最好的游戏体验，并可能存在安全风险。</h1>
		<img src="html/nonsupport_title_pp.png" style="width:76%;position:absolute;top:68%;left:12%;">
		<h2 id="p5" style="position:absolute;top:64%;color:#6E5632;text-align:center;left:47%;">推荐选择</h2>
		<img id="zz" src="html/nonsupport_chrome.png" onclick="zzDianJiIf();" style="width:5%;height:9%;position:absolute;top:72%;left:35%;">
		<h3 id="p6" style="position:absolute;top:81%;left:31%;color:#909090;">谷歌浏览器（点击下载）</h3>
		<img id="yy" src="html/nonsupport_qq.png"  onclick="yyDianJiIf();" style="width:5%;height:9%;position:absolute;top:72%;left:60%;">
		<h3 id="p7" style="position:absolute;top:81%;left:57%;color:#909090;">QQ浏览器（点击下载）</h3>
	</div>
    <script>
        function getLang(){
			var url = location.href;
			var position = url.indexOf("?");
			var parameterStr = url.substr(position + 1);
			var arr = parameterStr.split("&");
			var obj = {};
			for(var i=0; i<arr.length; i++){
				var data = arr[i].split("=");
				if(data[0]=="lang"){
                    return data[1];
                }
			}
		}

        // 加载初始界面会用到的多语言包
        loadScript("indexJs/noWebSocket/" + getLang() + ".js", setLang);
        function loadScript(src, callback) {
            var script = document.createElement('script'),
                head = document.getElementsByTagName('head')[0];
            script.type = 'text/javascript';
            script.charset = 'UTF-8';
            script.src = src;
            if (script.addEventListener) {
                script.addEventListener('load', function () {
                    callback();
                }, false);
            } else if (script.attachEvent) {
                script.attachEvent('onreadystatechange', function () {
                    var target = window.event.srcElement;
                    if (target.readyState == 'loaded') {
                        callback();
                    }
                });
            }
            head.appendChild(script);
        }
        function setLang() {
            var p4Text = document.getElementById("p4");
            var p5Text = document.getElementById("p5");
            var p6Text = document.getElementById("p6");
            var p7Text = document.getElementById("p7");
			p4Text.innerHTML = window.langArray[0];
			p5Text.innerHTML = window.langArray[1];
			p6Text.innerHTML = window.langArray[2];
			p7Text.innerHTML = window.langArray[3];
		}

        var osName = browserRedirect();
		function browserRedirect() {
			var result = new UAParser().getResult();
			var osName = result.os.name;
			return osName;
		}
        
        function zzDianJiIf(){
            if(osName.indexOf('iOS') > -1){
                window.open("https://itunes.apple.com/cn/app/chrome-yougoogle-kai-fa-wang/id535886823?mt=8&ign-mpt=uo%3D2");
            }else if(osName.indexOf('Windows') > -1){
                window.open("http://www.google.cn/intl/zh-CN/chrome/browser/desktop/index.html");
            }else if(osName.indexOf('Android') > -1){
                window.open("market://details?id=com.android.chrome");
            }else if(osName.indexOf('Linux') > -1){
                window.open("https://play.google.com/store/apps/details?id=com.android.chrome&pcampaignid=websitedialog");
            }else if(osName.indexOf ("Mac") > -1){
                window.open("http://www.google.cn/intl/zh-CN/chrome/browser/desktop/index.html");
            }
        }
        function yyDianJiIf(){
            if(osName.indexOf('iOS') > -1){
                window.open("https://itunes.apple.com/cn/app/qq-liu-lan-qi-yi-xiao-shuo/id370139302?mt=8&v0=WWW-GCCN-ITSTOP100-FREEAPPS&l=&ign-mpt=uo%3D4");
            }else if(osName.indexOf('Windows') > -1){
                window.open("http://browser.qq.com/");
            }else if(osName.indexOf('Android') > -1){
                window.open("http://mb.qq.com/");
            }else if(osName.indexOf('Linux') > -1){
                window.open("http://mb.qq.com/");
            }else if(osName.indexOf ("Mac") > -1){
                window.open("http://browser.qq.com/mac/");
            }
        }
       
    </script>
</body>
</html>
